package model

//class UserInfo{
//
//}
type UserInfo struct {
	Name string
	Age int
	Height float32
	Eduschool string
	Hobby []string
	MoreInfo map[string]interface{}
}
type userInfo struct {
	Name string
	Age int
	Height float32
	Eduschool string
	Hobby []string
	MoreInfo map[string]interface{}
}

//工厂模式：生成对象
func NewUserInfo(name string,age int,height float32,eduschool string,hobby []string,moreinfo map[string]interface{}) *userInfo {
	return &userInfo{
		Name:      name,
		Age:       age,
		Height:    height,
		Eduschool: eduschool,
		Hobby:     hobby,
		MoreInfo:  moreinfo,
	}
}